# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DIRS += ['app']

EXPORTS.mozilla._ipdltest += [
    'IPDLUnitTestProcessChild.h',
    'IPDLUnitTests.h',
    'IPDLUnitTestTypes.h',
    'IPDLUnitTestUtils.h',
]

SOURCES += [
    'TestActorPunning.cpp',
    'TestBadActor.cpp',
    'TestBridgeMain.cpp',
    'TestCancel.cpp',
    'TestCrashCleanup.cpp',
    'TestDataStructures.cpp',
    'TestDemon.cpp',
    'TestDesc.cpp',
    'TestEndpointBridgeMain.cpp',
    'TestEndpointOpens.cpp',
    'TestFailedCtor.cpp',
    'TestHangs.cpp',
    'TestHighestPrio.cpp',
    'TestInterruptErrorCleanup.cpp',
    'TestInterruptRaces.cpp',
    'TestInterruptShutdownRace.cpp',
    'TestJSON.cpp',
    'TestLatency.cpp',
    'TestManyChildAllocs.cpp',
    'TestMultiMgrs.cpp',
    'TestNestedLoops.cpp',
    'TestOpens.cpp',
    'TestRaceDeadlock.cpp',
    'TestRaceDeferral.cpp',
    'TestRacyInterruptReplies.cpp',
    'TestRacyReentry.cpp',
    'TestRacyUndefer.cpp',
    'TestRPC.cpp',
    'TestSanity.cpp',
    'TestSelfManageRoot.cpp',
    'TestShmem.cpp',
    'TestShutdown.cpp',
    'TestStackHooks.cpp',
    'TestSyncError.cpp',
    'TestSyncHang.cpp',
    'TestSyncWakeup.cpp',
    'TestUrgency.cpp',
    'TestUrgentHangs.cpp',
]

SOURCES += [
    '!IPDLUnitTests.cpp',
    'IPDLUnitTestProcessChild.cpp',
    'IPDLUnitTestSubprocess.cpp',
]

IPDL_SOURCES += [
    'PTestActorPunning.ipdl',
    'PTestActorPunningPunned.ipdl',
    'PTestActorPunningSub.ipdl',
    'PTestBadActor.ipdl',
    'PTestBadActorSub.ipdl',
    'PTestBridgeMain.ipdl',
    'PTestBridgeMainSub.ipdl',
    'PTestBridgeSub.ipdl',
    'PTestCancel.ipdl',
    'PTestCrashCleanup.ipdl',
    'PTestDataStructures.ipdl',
    'PTestDataStructuresCommon.ipdlh',
    'PTestDataStructuresSub.ipdl',
    'PTestDemon.ipdl',
    'PTestDesc.ipdl',
    'PTestDescSub.ipdl',
    'PTestDescSubsub.ipdl',
    'PTestEndpointBridgeMain.ipdl',
    'PTestEndpointBridgeMainSub.ipdl',
    'PTestEndpointBridgeSub.ipdl',
    'PTestEndpointOpens.ipdl',
    'PTestEndpointOpensOpened.ipdl',
    'PTestFailedCtor.ipdl',
    'PTestFailedCtorSub.ipdl',
    'PTestFailedCtorSubsub.ipdl',
    'PTestHandle.ipdl',
    'PTestHangs.ipdl',
    'PTestHighestPrio.ipdl',
    'PTestIndirectProtocolParam.ipdlh',
    'PTestIndirectProtocolParamFirst.ipdl',
    'PTestIndirectProtocolParamManage.ipdl',
    'PTestIndirectProtocolParamSecond.ipdl',
    'PTestInterruptErrorCleanup.ipdl',
    'PTestInterruptRaces.ipdl',
    'PTestInterruptShutdownRace.ipdl',
    'PTestJSON.ipdl',
    'PTestLatency.ipdl',
    'PTestManyChildAllocs.ipdl',
    'PTestManyChildAllocsSub.ipdl',
    'PTestMultiMgrs.ipdl',
    'PTestMultiMgrsBottom.ipdl',
    'PTestMultiMgrsLeft.ipdl',
    'PTestMultiMgrsRight.ipdl',
    'PTestNestedLoops.ipdl',
    'PTestOpens.ipdl',
    'PTestOpensOpened.ipdl',
    'PTestPriority.ipdl',
    'PTestRaceDeadlock.ipdl',
    'PTestRaceDeferral.ipdl',
    'PTestRacyInterruptReplies.ipdl',
    'PTestRacyReentry.ipdl',
    'PTestRacyUndefer.ipdl',
    'PTestRPC.ipdl',
    'PTestSanity.ipdl',
    'PTestSelfManage.ipdl',
    'PTestSelfManageRoot.ipdl',
    'PTestShmem.ipdl',
    'PTestShutdown.ipdl',
    'PTestShutdownSub.ipdl',
    'PTestShutdownSubsub.ipdl',
    'PTestStackHooks.ipdl',
    'PTestSyncError.ipdl',
    'PTestSyncHang.ipdl',
    'PTestSyncWakeup.ipdl',
    'PTestUrgency.ipdl',
    'PTestUrgentHangs.ipdl',
]

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'xul'
